package com.glsc.ngateway.common.base.domain.mysql.flowable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

@ToString
@AllArgsConstructor
@NoArgsConstructor
@Data
@Entity
@Table(name = "ACT_HI_COMMENT")
public class ActHiComment implements Serializable {

    @Id
    @Column(name = "ID_")
    private String id;

    @Column(name = "TYPE_")
    private String type = "comment";

    @Column(name = "TIME_")
    private LocalDateTime time;

    @Column(name = "USER_ID_")
    private String userId;

    @Column(name = "TASK_ID_")
    private String taskId;

    @Column(name = "PROC_INST_ID_")
    private String procInstId;

    @Column(name = "ACTION_")
    private String action;

    @Column(name = "MESSAGE_")
    private String message;

    @Column(name = "FULL_MSG_")
    private byte[] fullMsg;
}
